You can have local variables with the same name in different functions, because each is recognized only by the function in which it is declared

#Title: JavaScript Variables
#Element: 167: When you declare a variable within a function, ...
#Article: 79: JavaScript Variables